<template>
  <div>
    <span v-for="item in like" :key="item">
      <input type="checkbox" name="" id="" v-model="ulike" :value="item" />
      {{ item }}
    </span>
    <ul>
      <li v-for="item in ulike" :key="item">
        {{ item }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      like: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      ulike: [],
    };
  },
};
</script>

<style>
</style>